package com.fangcun.service.admin;

import java.util.List;

import com.fangcun.bean.admin.goods.GoodsResponse;
import com.fangcun.bean.admin.goods.response.GoodsDetailResponse;
import com.fangcun.bean.sys.PageBean;
import com.fangcun.common.exception.ProException;
import com.fangcun.entity.Goods;
import com.fangcun.entity.GoodsPrice;
import com.fangcun.entity.User;
import com.github.pagehelper.PageInfo;

public interface GoodsSeriver {
	// 列表
	public PageInfo<GoodsResponse> list(PageBean<Goods> request) throws ProException;
	// 列表价格
	public PageInfo<GoodsPrice> listPrice(PageBean<GoodsPrice> request) throws ProException;
	// 增加
	public Long add(Goods request) throws ProException;
	// 详情
	public GoodsDetailResponse detail(Long id) throws ProException;
	// 价格详情
	public GoodsPrice detailsPrice(Long id) throws ProException;
	// 修改
	public void update(Goods request) throws ProException;
	// 增加价格
	public void addPrice(GoodsPrice request) throws ProException;
	// 修改价格
	public void updatePrice(GoodsPrice request) throws ProException;
	
	public void updateListPrice(List<GoodsPrice> request) throws ProException;
	//管理员下拉
	public List<User> userDropDown(User request)throws ProException;
}
